//============================================================================
// Name        : 3_8.cpp
// Author      : 
// Version     :
// Copyright   : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================

#include <iostream>
#include <string>

int main() {

	std::string result_str, str;
	std::cout << "Please input strings ending with Ctrl + Z:" << std::endl;
	while(std::cin >> str)
	{
		result_str = result_str + str + ' ';
		std::cout << "The result of all strings is :" << std::endl << result_str;
	}
	return 0;
}
